#!/bin/env python

from mako.template import Template

class DemoItem:
	def __init__(self, name, type):
		self.name = name
		self.type = type


if __name__ == '__main__':
	tpl = Template(filename='./test_gen.tpl')
	lst = []
	for i in range(10):
		lst.append( DemoItem( 'ayoo%02d~'%i, 'tt%02d~'%i) )

	print tpl.render(name='aaa', lst=lst)

